﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DataLoad.iContact.WinClient
{
    public class MatchRate : IComparable<MatchRate>, IEquatable<MatchRate>
    {
        public const int NoMatch = 0;

        public const int Minimal = 1;

        public const int Normal = 2;

        public const int Strong = 3;

        private int _value = MatchRate.NoMatch;

        public MatchRate(int value)
        {
            _value = value;
        }

        public int Value
        {
            get
            {
                return _value;
            }

            set
            {
                _value = value;
            }
        }

        #region IComparable<MatchRate> Members

        public int CompareTo(MatchRate other)
        {
            return _value.CompareTo(other.Value);
        }

        #endregion

        #region IEquatable<MatchRate> Members

        public bool Equals(MatchRate other)
        {
            return _value.Equals(other.Value);
        }

        #endregion
    }
}
